package com.bw.service;

import com.bw.gmallpublisher.bean.User;
import com.bw.gmallpublisher.mapper.UserMapper;
import com.bw.gmallpublisher.mapper.UserMapper2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    UserMapper userMapper;
    @Autowired
    UserMapper2 userMapper2;
    @Override
    public Map findByIdAndSFZ(Map map) {

        return userMapper.findByIdAndSFZ(map);
    }

    @Override
    public int updateByIdAndSFZ(Map map) {


        return userMapper.updateByIdAndSFZ(map);
    }

    @Override
    public List<Map> findAllImgIsNull() {
        return userMapper.findAllImgIsNull();
    }

    @Override
    public List<Map> findAllByIdList(List  ids) {
        return userMapper2.findAllByIdList(ids);
    }
}
